package com.xiaoxx.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;
import lombok.Getter;
import lombok.NoArgsConstructor;

/**
 * @author :HX
 * @date : 2023/8/17
 */
@Getter
@NoArgsConstructor
public enum ResdisKeyEnum {
    LOGIN_TOKEN("login_tokens", "用户信息"),
    LOGIN_CODE("login_code", "验证码"),
    CHAT_CONTENT_CACHE("chat_content_cache", "AL聊天缓存"),
    ;

    @EnumValue
    private String redisKey;
    private String redisDesc;
    private String redisPath;

    ResdisKeyEnum(String redisKey, String redisDesc) {
        this.redisKey = redisKey;
        this.redisDesc = redisDesc;
        this.redisPath = redisKey.concat(":");
    }
}
